package com.jfireframework.sql.page;

import java.util.List;

public class Page
{
    protected int     total;
    protected int     offset;
    protected int     size;
    protected List<?> data;
    /**
     * 是否需要查询总数
     */
    protected boolean fetchSum = false;
    
    public int getTotal()
    {
        return total;
    }
    
    public int getOffset()
    {
        return offset;
    }
    
    public int getSize()
    {
        return size;
    }
    
    public List<?> getData()
    {
        return data;
    }
    
    public void setTotal(int total)
    {
        this.total = total;
    }
    
    public void setOffset(int offset)
    {
        this.offset = offset;
    }
    
    public void setSize(int size)
    {
        this.size = size;
    }
    
    public void setData(List<?> data)
    {
        this.data = data;
    }
    
    public boolean isFetchSum()
    {
        return fetchSum;
    }
    
    public void setFetchSum(boolean fetchSum)
    {
        this.fetchSum = fetchSum;
    }
    
}
